﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace TYControl
{
    public static class ListViewExtends
    {
        public static void ScrollToBottom(this ListBox list)
        {
            if (list.Items.Count <= 0)
                return;
            list.ScrollIntoView(list.Items[list.Items.Count - 1]);
        }
    }
}
